import type { GetFlowAndPressureReq, GetFlowAndPressureRes } from './types';

/**
 * @description 获取流量和压力
 */
export const getFlowAndPressure = (data: GetFlowAndPressureReq) => {
    return useClientRequest<string>('/proxy-api/reports/getdata.php', {
        query: data,
    });
};

/**
 * @description 获取表格
 */
export const getTable = () => {
    return useServerRequest<ResPonseType<any>>('/api/table');
};
